package com.bean;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "IMPORTED_FILE", schema = "dbo")
public class ImportedFile implements Serializable {
	private static final long serialVersionUID = 1L;
	private long id;
	private String name;
	private String fileType;
	private Timestamp importedDate;
	
	public final static String FileType_GZ = "gz";
	public final static String FileType_CSV = "csv";
	
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "NAME", length = 200)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "FILE_TYPE", length = 10)
	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	@Column(name = "IMPORTED_DATE", columnDefinition="datetime")
	public Timestamp getImportedDate() {
		return importedDate;
	}

	public void setImportedDate(Timestamp importedDate) {
		this.importedDate = importedDate;
	}

	
}
